package com.unknowpupil.eth.controller;

import com.unknowpupil.eth.service.EthService;
import com.unknowpupil.eth.service.UsdtService;
import com.unknowpupil.eth.service.impl.EthServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname: AccountWalletController
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/1/3 16:30
 * @Description:
 * @Version: 1.0
 */
@RestController
public class AccountWalletController {
    @Autowired
    EthService ethService;
    @Autowired
    UsdtService usdtService;
    @GetMapping("/")
    public String hello() throws Exception {
        int ethHeight = ethService.getBlockHeight();
        int usdtHeight = usdtService.getBlockHeight();
        return ethHeight+""+usdtHeight;
    }


}
